package homework.clazz.data3.data4;

public class Person {
    public static void main(String[] args) {
        Person[] per;
        per=new Person[3];
        per[0]=new Person("02蛋蛋",20);
        per[1]=new Person("29赵帆",21);
        per[2]=new Person("01陈书杨",19);
        per[2].show();
        per[1].show();
        per[0].show();
    }
    private String name;
    private int age;

    public  Person(String name, int age)
    {
        this.name=name;
        this.age=age;
    }
    public void show()
    {
        System.out.println("姓名："+name+" 年龄："+age);
    }
}
